<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "d_try.pay_log".
 *
 * @property string $pay_log_id
 * @property string $bestry_uid
 * @property string $total_fee
 * @property string $order_info_id
 * @property string $order_sn
 * @property integer $pay_id
 * @property string $pay_name
 * @property string $bank
 * @property string $trade_status
 * @property string $trade_no
 * @property string $notify_time
 * @property string $bank_seq_no
 * @property string $out_channel_type
 * @property string $out_channel_inst
 * @property string $create_time
 * @property string $return_amount
 */
class PayLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.pay_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['bestry_uid', 'order_info_id', 'pay_id'], 'integer'],
            [['total_fee', 'return_amount'], 'number'],
            [['notify_time','create_time'], 'safe'],
            [['order_sn', 'trade_status'], 'string', 'max' => 60],
            [['pay_name', 'bank'], 'string', 'max' => 30],
            [['trade_no', 'out_channel_type', 'out_channel_inst'], 'string', 'max' => 255],
            [['bank_seq_no'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'pay_log_id' => 'Pay Log ID',
            'bestry_uid' => '会员uid',
            'total_fee' => '支付金额',
            'order_info_id' => '订单uid',
            'order_sn' => '订单号',
            'pay_id' => '支付方式：1是支付宝 3是网银',
            'pay_name' => '支付方式：支付宝或网银',
            'bank' => '银行简码',
            'trade_status' => '支付状态',
            'trade_no' => '支付宝交易流水号',
            'notify_time' => '通知时间',
            'bank_seq_no' => '网银流水号',
            'out_channel_type' => '该笔交易所使用的支付渠道',
            'out_channel_inst' => '实际支付渠道',
            'create_time' => '记录添加时间',
            'return_amount' => 'Return Amount',
        ];
    }
}
